#ifndef __JMIC_H__
#define __JMIC_H__
#include "Serial.h"

class YtJmic
{

public:
	void rx_irq_handler();
	void init();
	void deinit();
	bool is_ready();	
	int get_rxReadSize();
	void puts(char *pDataToSend, int nByteNumberToSend);	
	void gets(char *pDataReceived, int pReceivedByteNumber);

private:
	mbed::Serial *_serical;
	unsigned char rxBuf[24];
	unsigned int rxReadSize;
};


#endif
